#pragma once 
#include "..\GDK\DarkGDK_classes.h"
#include <map>
using namespace std;

typedef map<string, TGDKImage*> TResourceImageList;
typedef struct AnimInfo
{
    TGDKImage *img;
    int rows;
    int cols;
    int delay;
}AnimInfo;
typedef map<string, AnimInfo*> TResourceAnimInfoList;

class ResourceManager
{
    static TResourceImageList mapLoadedResources;
    static TResourceAnimInfoList mapLoadedAnimation;
public:
    static bool LoadResourceList(string filename);
    static void FreeResources();
    static TGDKImage* GetResource(string name);    
    static TGDKSprite* CreateAnimation(string name, int x, int y);
};

